package com.lovo;

import java.io.UnsupportedEncodingException;

public class Test03 {
    public static void main(String[] args) {
        String str = "你好啊Java";
        try {
            byte [] bs = str.getBytes("gbk");
            System.out.println(new String(bs,"gbk"));
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
    }
}
